From 18efd3bec24d2beb1fcb5ffa5e4492af7fc3e1df Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Sun, 30 Oct 2022 22:11:10 -0700 Subject: revamped tip prompt --- src/routes/invoice/[id]/tip/+page.svelte | 261 +++++++++++++++++++++++++++++++ 1 file changed, 261 insertions(+) create mode 100644 src/routes/invoice/[id]/tip/+page.svelte (limited to 'src/routes/invoice/[id]/tip/+page.svelte') diff --git a/src/routes/invoice/[id]/tip/+page.svelte b/src/routes/invoice/[id]/tip/+page.svelte new file mode 100644 index 00000000..26eeba31 --- /dev/null +++ b/src/routes/invoice/[id]/tip/+page.svelte @@ -0,0 +1,261 @@ + + + + +
+
+ + + + + + +

{$t('invoice.addTipq')}

+ {#if !showCustomAmount} +
{Math.round(tipPercent)}%
+ + + +
+
+ + {f(amountFiat, currency)} + +{f(tipAmount, currency)} +
+ +
+ {s(amount)} + +{s(tip)} SAT +
+
+ + {#if tip} +
+ + +
+ {:else} + {#each tipAmounts as amount} + + {/each} + {/if} + +
+ +
+ {/if} + +
+
+ + {/if} + + + -- cgit v1.2.3